import request from "@/utils/request";

export function getTree(data) {
  return request({
    url: "/api/v1/system/coreLessonPreparation/findTree",
    method: "get",
    params: data,
  });
}

export function getVideoUrlById(data) {
  return request({
    url: "/api/v1/system/coreLessonPreparation/getVideoUrlById",
    method: "get",
    params: data,
  });
}

export function getCoreLessonPreparationById(data) {
  return request({
    url: "/api/v1/system/coreLessonPreparation/getById",
    method: "get",
    params: data,
  });
}

export function timihecheng(data) {
  return request({
    url: "/Task/语音合成",
    method: "get",
    params: data,
  });
}

export function yidong(data) {
  return request({
    url: "/api/v1/system/coreLessonPreparation/yidong",
    method: "get",
    params: data,
  });
}

export function getListByids(data) {
  return request({
    url: "/api/v1/system/coreLessonPreparation/getListByids",
    method: "get",
    params: data,
  });
}

export function getkcjldx(data) {
  return request({
    url: "/api/v1/system/coreLessonPreparation/getkcjldx",
    method: "get",
    params: data,
  });
}

//按照名称进行查询 和上级ID
export function getByListByName(data) {
  return request({
    url: "/api/v1/system/coreLessonPreparation/getByListByName",
    method: "post",
    data,
  });
}

export function findTreeByid(data) {
  return request({
    url: "/api/v1/system/coreLessonPreparation/findTreeByid",
    method: "get",
    params: data,
  });
}

export function shengcengyuyinwenjian(data) {
  return request({
    url: "/Task/语音合成3",
    method: "get",
    params: data,
  });
}

export function generatePreviewImage(data) {
  return request({
    url: "/api/v1/system/coreLessonPreparation/generatePreviewImage",
    method: "post",
    data,
  });
}

export function findTreeByid2(data) {
  return request({
    url: "/api/v1/system/coreLessonPreparation/findTreeByid2",
    method: "get",
    params: data,
  });
}

export function findTreeAll(data) {
  return request({
    url: "/api/v1/system/coreLessonPreparation/findTreeAll",
    method: "get",
    params: data,
  });
}

export function doInsert(data) {
  return request({
    url: "/api/v1/system/coreLessonPreparation/insert",
    method: "post",
    data,
  });
}

export function doUpdate(data) {
  return request({
    url: "/api/v1/system/coreLessonPreparation/update",
    method: "post",
    data,
  });
}

export function doDelete(data) {
  return request({
    url: "/api/v1/system/coreLessonPreparation/del",
    method: "post",
    params: data,
  });
}
